import Qiniu, { Auth, ImgOps, Conf, Rs, Rpc } from 'react-native-qiniu';

//通过服务器api获取
Conf.ACCESS_KEY = '';
Conf.SECRET_KEY = '';

var putPolicy = new Auth.PutPolicy2(
    { scope: '<Bucket>:<Key>'}
)
var uptoken = putPolicy.token();
let formInput = {
    key: '',
};
Rpc.uploadFile('<LOCAL_URL>', uptoken, formInput);













